package com.xialinrui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xialinrui.entity.Note;
import com.xialinrui.mapper.NoteMapper;
import com.xialinrui.service.NoteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author xialinrui
 */
@Service
public class NoteServiceImpl extends ServiceImpl<NoteMapper, Note> implements NoteService {

    @Resource
    private NoteMapper noteMapper;

    @Override
    public void addOneInstant(Note note) {
        noteMapper.insert(note);
    }

    @Override
    public void delete(List<Long> ids) {
        noteMapper.deleteBatchIds(ids);
    }


}
